//
//  registLoginView.m
//  SoundPill
//
//  Created by 宋鹏鹏 on 15/5/12.
//  Copyright (c) 2015年 宋旭东. All rights reserved.
//

#import "registLoginView.h"

@implementation registLoginView

- (instancetype)initWithFrame:(CGRect)frame image:(UIImage *)myImage placeHold:(NSString *)placeHold
{
    self = [super initWithFrame:frame];
    if (self) {
        UIView *registerView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, self.frame.size.width, 30)];
//        registerView.layer.borderWidth = 0.5;
//        registerView.layer.borderColor = [[UIColor darkGrayColor] CGColor];
        [self addSubview:registerView];
        
        self.field = [[UITextField alloc] initWithFrame:CGRectMake(10, 5, self.frame.size.width - 20, 20)];
        self.field.textColor = [UIColor blackColor];
        self.field.placeholder = placeHold;
        [self.field setValue:[UIColor lightGrayColor] forKeyPath:@"_placeholderLabel.textColor"];
        self.field.returnKeyType = UIReturnKeyDone;
        [registerView addSubview:self.field];
    }
    return self;
}

@end
